package com.kaer.plugin.utils;

import android.util.Base64;

public class Base64Utils {
	private Base64Utils(){};
	
	// BASE64 编码
	public static String encode(String string) {
		string=Base64.encodeToString(string.getBytes(),Base64.DEFAULT);
		return string;
	}

	// 将 BASE64 编码的字符串进行解码
	public static String decode(String string) {
		byte b[]=Base64.decode(string,Base64.DEFAULT);
		return new String(b);
	}
}
